package com.kb.design.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kb.design.dto.ContractDTO;
import com.kb.design.dto.CustomUserDTO;
import com.kb.design.dto.DesignOrderDTO;
import com.kb.design.dto.DesignOrderDetailDTO;
import com.kb.design.entity.CustomUser;
import com.kb.design.entity.DesignOrder;
import org.springframework.web.bind.annotation.RequestBody;

public interface DesignOrderService extends IService<DesignOrder> {
    // 新增 CRUD 方法声明
    boolean saveDesignOrder(DesignOrder designOrder);
    boolean updateDesignOrder(DesignOrder designOrder);
    boolean deleteDesignOrder(Long id);
    DesignOrder getDesignOrderById(Long id);

    Page<DesignOrderDTO> queryByPage(DesignOrderDTO designOrder);
    Page<DesignOrder> listByParameters(DesignOrderDTO designOrder);

    DesignOrderDetailDTO getDetailInfo(DesignOrderDTO designOrder);
    boolean designOrderService(Integer date);
    boolean cancelOrder(DesignOrderDTO designOrder);

}